package wiki.hitime.stl.daq.bean.dto.manage;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author zhangdp
 * @since 2019-07-15 16:59:58
 */
@Data
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
public class CheckRuleDTO {

    /**
     * 规则编号
     */
    private Long id;

    /**
     * 执行规则编号
     **/
    private Long executeRuleId;

    /**
     * 采集规则编号
     **/
    private Long acquisitionRuleId;

    /**
     * 检查规则名称
     **/
    @NotEmpty(message = "检查规则名称为空")
    private String ruleName;

    /**
     * 检查比较值
     **/
    @NotEmpty(message = "检查比较值为空")
    private String expectCheckData;

    /**
     * 检查形式名称
     **/
    private String checkName;

    /**
     * 检查实现类名称
     **/
    @NotEmpty(message = "检查形式为空")
    private String implServiceName;

    /**
     * 备注
     **/
    private String remark;

    /**
     * 消息规则
     */
    @Valid
    @NotNull(message = "消息规则为空")
    private MsgRuleDTO msgRuleDTO;
}
